<template>
  <div id="app">
    <!-- <div id="nav">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </div> -->

    <el-menu class="el-menu-demo" :default-active="$route.path" mode="horizontal" :router="true">
      <el-menu-item index="/">未读消息({{$store.state.unreadList.length}})</el-menu-item>
      <el-menu-item index="/about">已读消息({{$store.state.readList.length}})</el-menu-item>
      <el-menu-item index="/delect">回收站({{$store.state.recycle.length}})</el-menu-item>
    </el-menu>
    <router-view />
  </div>
</template>

<style lang="scss">
*{
  padding: 0;
  margin: 0;
  list-style: none;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  color: #2c3e50;
}
ul{
  margin: 20px 0;
}
li{
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
</style>
